package com.ruoyi.project.remake.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 纸质病例管理对象 t_paper_case
 *
 * @author 孙山伟
 * @date 2020-12-20
 */
public class TPaperCase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 在库状态 */
    @Excel(name = "在库状态")
    private String inLibraryStatus;

    /** 库房位置 */
    @Excel(name = "库房位置")
    private String warehouseLocation;

    /** 装箱日期 */
    @Excel(name = "装箱日期", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date packingTime;

    /** 入院科室 */
    @Excel(name = "入院科室")
    private String beDepartment;

    /** 出院科室 */
    @Excel(name = "出院科室")
    private String leaveDepartment;

    /** 出院时间 */
    @Excel(name = "出院时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dischargeTime;

    /** 入院时间 */
    @Excel(name = "入院时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date admissionTime;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 病历号 */
    @Excel(name = "病历号")
    private String medicalRecord;

    /** 档案号 */
    @Excel(name = "档案号")
    private String fileNumber;

    /** 箱号 */
    @Excel(name = "箱号")
    private String caseNumber;

    /** $column.columnComment */
    private Long id;

    public void setInLibraryStatus(String inLibraryStatus)
    {
        this.inLibraryStatus = inLibraryStatus;
    }

    public String getInLibraryStatus()
    {
        return inLibraryStatus;
    }
    public void setWarehouseLocation(String warehouseLocation)
    {
        this.warehouseLocation = warehouseLocation;
    }

    public String getWarehouseLocation()
    {
        return warehouseLocation;
    }
    public void setPackingTime(Date packingTime)
    {
        this.packingTime = packingTime;
    }

    public Date getPackingTime()
    {
        return packingTime;
    }
    public void setBeDepartment(String beDepartment)
    {
        this.beDepartment = beDepartment;
    }

    public String getBeDepartment()
    {
        return beDepartment;
    }
    public void setLeaveDepartment(String leaveDepartment)
    {
        this.leaveDepartment = leaveDepartment;
    }

    public String getLeaveDepartment()
    {
        return leaveDepartment;
    }
    public void setDischargeTime(Date dischargeTime)
    {
        this.dischargeTime = dischargeTime;
    }

    public Date getDischargeTime()
    {
        return dischargeTime;
    }
    public void setAdmissionTime(Date admissionTime)
    {
        this.admissionTime = admissionTime;
    }

    public Date getAdmissionTime()
    {
        return admissionTime;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setMedicalRecord(String medicalRecord)
    {
        this.medicalRecord = medicalRecord;
    }

    public String getMedicalRecord()
    {
        return medicalRecord;
    }
    public void setFileNumber(String fileNumber)
    {
        this.fileNumber = fileNumber;
    }

    public String getFileNumber()
    {
        return fileNumber;
    }
    public void setCaseNumber(String caseNumber)
    {
        this.caseNumber = caseNumber;
    }

    public String getCaseNumber()
    {
        return caseNumber;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inLibraryStatus", getInLibraryStatus())
            .append("warehouseLocation", getWarehouseLocation())
            .append("packingTime", getPackingTime())
            .append("beDepartment", getBeDepartment())
            .append("leaveDepartment", getLeaveDepartment())
            .append("dischargeTime", getDischargeTime())
            .append("admissionTime", getAdmissionTime())
            .append("sex", getSex())
            .append("name", getName())
            .append("medicalRecord", getMedicalRecord())
            .append("fileNumber", getFileNumber())
            .append("caseNumber", getCaseNumber())
            .append("id", getId())
            .toString();
    }
}
